# 12.19.12
# Makefile for XBee Lib
CC=gcc
CFLAGS=-c
SOURCES=XBee.c
OBJECTS=$(SOURCES:.c=.o) 	# Means the object files are the src files with .o
							# instead of .c
EXECUTABLE=runXBee

all: clean $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@
	
clean:
	rm -rf *.o $(EXECUTABLE)
